package cn.cljh.day7_22.task;

public class Test2 {
    public static void main(String[] args) {
        int[] a= {8,4,2,1,23,344,12};
        int sum=0;
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i]+" ");
            sum+=a[i];
        }


    }
}
